<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of load
 *
 * @author ThanLe
 */
class loadpage extends CI_Controller {

    public function __construct() {
        parent::__construct();
    }

    public function load($arraypage, $data) {
        if ($this->session->userdata("is_login") == 1)
            $data['tentk'] = $this->session->userdata('tentk');
        $this->load->view('v_header',$data);
        foreach ($arraypage as $value) {
            $this->load->view($value, $data);
        }
        $this->load->view('v_footer');
    }

}

?>
